Show language: C# VB.NET Both

Programmatic Importing

To import programmatically, use the appropriate Import method in DocumentIndex.

Website

See here for a complete code example

C#
DocumentIndex documentIndex = new DocumentIndex(configuration);
documentIndex.ImportWebsite(...url..);
documentIndex.Close();
VB.NET
Dim documentIndex As New DocumentIndex(configuration)
documentIndex.ImportWebsite(...url...)
documentIndex.Close()

File-system Document Store

Please see general information on import parameters.
C#
DocumentIndex documentIndex = new DocumentIndex(configuration);
documentIndex.ImportFileSystemFolder(localFolderPath, virtualPath, targetMatchList, ignoreMatchList, recurseSubFolders);
documentIndex.Close();
VB.NET
Dim documentIndex As New DocumentIndex(configuration)
documentIndex.ImportFileSystemFolder(localFolderPath, virtualPath, targetMatchList, ignoreMatchList, recurseSubFolders)
documentIndex.Close()

Database (MSSQL, OLE, Oracle)

Please see general information on import parameters.
C#
DocumentIndex documentIndex = new DocumentIndex(configuration);
documentIndex.ImportDatabase(sourceType, connectionString, sqlQuery, uniqueColumnName, resultUrlFormat);
documentIndex.Close();
VB.NET
Dim documentIndex As New DocumentIndex(configuration)
documentIndex.ImportDatabase(sourceType, connectionString, sqlQuery, uniqueColumnName, resultUrlFormat)
documentIndex.Close()

Custom DataSet Provider

Please see general information on import parameters.
C#
DocumentIndex documentIndex = new DocumentIndex(configuration);
documentIndex.ImportCustomDataSet(assemblyFilePath, fullClassName, uniqueColumnName, resultUrlFormat);
documentIndex.Close();
VB.NET
Dim documentIndex As New DocumentIndex(configuration)
documentIndex.ImportCustomDataSet(assemblyFilePath, fullClassName, uniqueColumnName, resultUrlFormat)
documentIndex.Close()